package com.lin.controller.course;


import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.lin.base.Result;
import com.lin.entity.Course;
import com.lin.service.CourseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 林伟鸿
 * @since 2022-04-16
 */
@RestController
@RequestMapping("/api/course")
public class CourseController {

    @Resource
    CourseService courseService;

    @GetMapping("/list")
    public Result courseList() {
        return Result.ok(courseService.list(),"查询成功");
    }
}
